package com.jiandian.dao;

import com.jiandian.crudparams.vo.OnlineSignPrizeLogVo;
import com.jiandian.entity.SignPrizeLog;
import com.jiandian.page.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 抽奖日志 Mapper
 *
 * @author houqi Fu
 * @date 2018/12/15
 */
@Component
@Mapper
public interface SignPrizeLogMapper {
    SignPrizeLog selectByPrimaryKey(Long id);

    List<SignPrizeLog> selectAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    List<SignPrizeLog> batchQueryByIds(List<Long> ids);

    int updateByPrimaryKey(SignPrizeLog record);

    int insert(SignPrizeLog record);

    int batchInsert(List<SignPrizeLog> list);

    int batchDeleteById(List<Long> ids);

    int deleteByPrimaryKey(Long id);

    void consumeSupplement(@Param("userId") int userId, @Param("limit") int limit);

    List<OnlineSignPrizeLogVo> selectByMinId(@Param("minId")Long id);
}
